using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Web;
using System.Net;

namespace TwitterNET
{
    public class Session
    {
        public static string VERIFY_CREDENTIALS = "http://twitter.com/account/verify_credentials.json";

        public static void Authenticate()
        {
            WebRequest req = HttpWebRequest.Create(VERIFY_CREDENTIALS);

            req.Credentials = new NetworkCredential(User.USERNAME, User.PASSWORD);

            WebResponse res = req.GetResponse();

            StreamReader stream = new StreamReader(res.GetResponseStream());

            string data = stream.ReadToEnd();

            stream.Close();
        }
    }
}
